-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the frontend a module for customview #1313
Make the frontend a module for customview #1313
Conversation
d161a0a
to
72e1e9d
Compare
72e1e9d
to
f747a93
Compare
Separated a large, independent improvement part as another PR: |
Now it works fine with my super simple sample project! https://github.com/syucream/pagoda-customview-example |
And also I've added a workflow to auto-publish the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How excellent this is !!
Now my experimental module is available on https://github.com/users/syucream/packages/npm/pagoda-core/versions 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Current custom view is being in chaos ...
frontend/src/customview/...
, a non-scalable way ...So I wanna propose a smarter integration way between core (this repo) and custom views. Just providing this frontend implementations as a node module, then make developers to extend it theirselves. Thats like class-extension in some object-oriented languages,
class MyCustomView extends PagodaCore { ...
.Its an example customview project to extend that with a simple React components.
https://github.com/syucream/pagoda-customview-example